package com.aldobucchi.core
{
	
	import flash.events.EventDispatcher;
	
	import mx.core.IMXMLObject;


	/**
	 * 
	 * A base class for faceless MXML objects that only implements 
	 * initialized() and stores id:String and document:Object
	 * as expected.
	 * 
	 * @author aldo.bucchi@gmail.com
	 * 
	 */
	public class FacelessMXMLBase extends EventDispatcher implements IMXMLObject
	{
		
		////////////////////////////////
		// id
		////////////////////////////////
		
		private var _id:String;
		public function get id( ):String
		{
			return _id;
		}



		////////////////////////////////
		// document
		////////////////////////////////

		private var _document:Object;
		public function get document( ):Object
		{
			return _document;
		}
		
		
		
		public function initialized( document:Object , id:String ):void
		{
			_document = document;
			_id = id;
		}
		
	}
	
}